<div id="main-content">
    <div id="list-product">
        <div class="header">
            <div class="headerleft">
            </div>
            <div class="headertitle">
<?php
$currentPage = $this->currentPage;

if ($currentPage) {
    // check exists parent
    if ($currentPage['all_parent']) {
        $allParent = explode(',', $currentPage['all_parent']);
        if (isset($allParent[0])) {
            $allCategory = $this->allCategory;
            foreach($allParent as $parentID):
                $parent = $allCategory[$parentID];
                // check to ignore root
                if ($parent['left'] != 1) {
                ?>
                    <a href="<?php echo BASE_PATH . '/' . CURR_APP ?>?pid=<?php echo $parent['category_id']?>"><?php echo $parent['admin_title'];?></a> >> 
                <?php
                }
            endforeach;
        }
        echo @$currentPage['admin_title'];
    }
}
?>

            </div>
            <div class="headerright">
            </div>
        </div>
        <div class="content">
            <table cellspacing="0" cellpadding="0" width="100%">
                <tr>
                    <td class="centerleft"></td>
                    <td class="centercontent" style="width:540px">

<?php
if ($this->access) {

?>
<?php

    if ($currentPage) {
    ?>
    <div style="padding-top: 10px;">
                                        <?php
                                        echo @$currentPage['description'];
                                        ?>
    </div>
<?php
    } // if has item
} else { // access
    include('login.phtml');
}
?>

                    </td>
                    <td class="centerright"></td>
                </tr>
            </table>
        </div>
        <div class="footer">
            <div class="footerleft">
            </div>
            <div >
            </div>
            <div class="footerright">
            </div>
        </div>
    </div>
</div>
